#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include "searcher.hpp"
const std::string input = "data/raw_html/raw.txt";

int main()
{
    searcher::Searcher *search = new searcher::Searcher();
    search->InitSearcher(input);
    std::string query;
    std::string json_string;
    std::string buffer;
    while(true)
    {
        std::cout << "Please Enter You Search Query# ";
        std::getline(std::cin, buffer);
        query = buffer;
        buffer.clear();
        search->Search(query, &json_string);
        std::cout << json_string << std::endl;
    }
    return 0;
}